package org.dromara.xhlj.domain.vo;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.dromara.xhlj.domain.XhljGoodsRedemptionRecords;
import org.dromara.xhlj.domain.XhljGoods;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonIgnoreType;
import com.fasterxml.jackson.annotation.JsonInclude;
import org.dromara.common.core.utils.tree.TreeCruxField;
import org.dromara.wx.domain.WxUser;
import org.dromara.wx.domain.vo.WxUserVo;
import org.dromara.system.domain.SysUser;
import org.dromara.system.domain.vo.SysUserVo;
import org.dromara.common.translation.annotation.Translation;
import org.dromara.common.translation.constant.TransConstant;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import org.dromara.common.excel.annotation.ExcelDictFormat;
import org.dromara.common.excel.convert.ExcelDictConvert;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import org.springframework.transaction.annotation.Transactional;
import java.util.Date;
import java.io.Serial;
import java.io.Serializable;
import java.util.List;

/**
 * 商品兑换记录视图对象 xhlj_goods_redemption_records
 *
 * @author yf
 * @date 2024-07-28
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = XhljGoodsRedemptionRecords.class)
public class XhljGoodsRedemptionRecordsVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 兑换记录ID
     */
    @ExcelProperty(value = "兑换记录ID")
    private Integer recordId;
    /**
     * 兑换所用积分
     */
    @ExcelProperty(value = "兑换所用积分")
    private BigDecimal redemptionPoints;
    /**
     * wx_user（兑换用户）
     */
    @ExcelProperty(value = "wx_user")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    @Translation(type = WxUser.TRANS_ID_TO_VO, mapper = "createBy")
    private WxUserVo wxUser;
    private Integer createBy;
    /**
     * 兑换的商品ID
     */
    @ExcelProperty(value = "兑换的商品ID")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    @Translation(type = XhljGoods.TRANS_ID_TO_VO, mapper = "goodsId")
    private XhljGoodsVo goods;
    private Integer goodsId;
    /**
     * 兑换所用货币金额
     */
    @ExcelProperty(value = "兑换所用货币金额")
    private BigDecimal redemptionCurrency;
    /**
     * 兑换日期和时间
     */
    @ExcelProperty(value = "兑换日期和时间")
    private Date redemptionDate;
    /**
     * 兑换状态（0=成功，1=失败，2=取消）
     */
    @ExcelProperty(value = "兑换状态", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "status")
    @Translation(type = TransConstant.DICT_TYPE_TO_LABEL, other = "status", mapper = "status")
    private String statusDictData;
    private String status;
}
